3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
The Q3Pick_GetPickDetailValidMask function returns a mask for all types of TQ3PickDetail information that is relevant to a hit with the specified index for the given pick object. The Q3Pick_GetPickDetailValidMask call should be followed with a call to Q3Pick_GetPickDetailData for each corresponding type of pickDetail value set in the returned pickDetailValidMask . If a bit in pickDetailValidMask is 0, it means that either the pick detail type wasn't specified when the pick was created, or if it was specified then it was meaningless for the type of pick object or the geometry intersected.
The hit detail masks are values of type TQ3PickDetailMasks. See "Hit Detail Data" for a more complete description of the information these masks specify.
typedef enum TQ3PickDetailMasks {
kQ3PickDetailNone = 0,
kQ3PickDetailMaskPickID = 1 << 0,
kQ3PickDetailMaskPath = 1 << 1,
kQ3PickDetailMaskObject = 1 << 2,
kQ3PickDetailMaskLocalToWorldMatrix = 1 << 3,
kQ3PickDetailMaskXYZ = 1 << 4,
kQ3PickDetailMaskDistance = 1 << 5,
kQ3PickDetailMaskNormal = 1 << 6,
kQ3PickDetailMaskShapePart = 1 << 7,
kQ3PickDetailMaskPart = 1 << 8,
kQ3PickDetailMaskUV = 1 << 9,
} TQ3PickDetailMasks;
Previous | QD3D Book | Overview | Chapter Contents | Next |